package com.qiyu.mall.user.interfaces.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author linhao
 * @date 2019/12/13
 * @Version V1.0
 */
@Data
@AllArgsConstructor
public class UserDTO {

    @Min(value = -1,message = "id不能为负数")
    private Integer id;

    @NotNull(message = "用户名不能为空")
    private String username;
}
